<template>
  <div class="messages mx-1 d-flex flex-wrap centered">
    <message-item v-for="item in items" :title="item.title" :image="item.image"
                  class="message-item px-1">
    </message-item>
  </div>
</template>

<script>
  import MessageItem from "./MessageItem";
  import image1 from 'assets/images/大家的日语01.png'
  export default {
    name: "Messages",
    data() {
      return {
        items: [
          {
            title:"大家的日语 初级I",
            image: image1
          },
          {
            title:"大家的日语 初级II",
            image: image1
          },
          {
            title:"大家的日语 初级III",
            image: image1
          },
          {
            title:"大家的日语 初级IV",
            image: image1
          },
          {
            title:"大家的日语 初级V",
            image: image1
          }
        ]
      }
    },
    components: {
      MessageItem
    }
  }
</script>

<style scoped>
  .messages {
    margin-top: 40px;
    font-size: 14px;

  }

  .message-item {
    width: 50%;
  }

</style>
